package com.example.springboot.controller.postprocessor;

import com.example.springboot.config.postProcessor.apply.first.Sourceable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * postProcessor实现静态代理
 *
 * @Author:ChenZhangKun
 * @Date: 2022/9/6 13:38
 */
@RestController
@RequestMapping("/static")
public class StaticProxyController {
    @Autowired
    private Sourceable sourceable;

    @GetMapping("/test")
    public String test() {
        sourceable.method();
        return "成功";
    }
}
